/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gradius.Elementos.Tiros;

import gradius.Elementos.Elemento;
import gradius.Elementos.TelaGrafica;

/**
 *
 * @author Eduardo
 */
public abstract class Tiro extends Elemento
{
    private int danoTiro;
    private int stepX; //quantos pixels o tiro pula por vez
    private int stepY;

    public Tiro(TelaGrafica tela, int coordX, int coordY, int stepX, int stepY,int tamX, int tamY)
    {
        super(tela,coordX,coordY,tamX,tamY);
        this.stepX=stepX;
        this.stepY=stepY;
    }

    public void setSentidoTiro (int stepX, int stepY)
    {
        this.setStepX(stepX);
        this.setStepY(stepY);
    }

    public void setDanoTiro (int danoTiro)
    {
        this.danoTiro=danoTiro;
    }

    public int getDanoTiro ()
    {
        return this.danoTiro;
    }

    public void setStepX (int stepX)
    {
        this.stepX=stepX;
    }

    public int getStepX ()
    {
        return this.stepX;
    }

    public void setStepY (int stepY)
    {
        this.stepY=stepY;
    }

    public int getStepY ()
    {
        return this.stepY;
    }

    public void moveTiro()
    {
        this.incrementaElementoCoordenada(this.stepX,this.stepY);
    }
}
